}
static GtkFlowBoxChild *
-gtk_flow_box_find_child_at_pos (GtkFlowBox *box,
- gint x,
- gint y)
+gtk_flow_box_get_child_at_pos (GtkFlowBox *box,
+ gint x,
+ gint y)
{
GtkWidget *child;
GSequenceIter *iter;
sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (priv->drag_gesture));
gtk_gesture_get_point (priv->drag_gesture, sequence, &x, &y);
- child = gtk_flow_box_find_child_at_pos (box, x, y);
+ child = gtk_flow_box_get_child_at_pos (box, x, y);
gtk_flow_box_update_active (box, child);
if (event->window != gtk_widget_get_window (GTK_WIDGET (box)))
return FALSE;
- child = gtk_flow_box_find_child_at_pos (box, event->x, event->y);
+ child = gtk_flow_box_get_child_at_pos (box, event->x, event->y);
gtk_flow_box_update_active (box, child);
return FALSE;
if (event->detail != GDK_NOTIFY_INFERIOR)
child = NULL;
else
- child = gtk_flow_box_find_child_at_pos (box, event->x, event->y);
+ child = gtk_flow_box_get_child_at_pos (box, event->x, event->y);
gtk_flow_box_update_active (box, child);
(offset_x * offset_x) + (offset_y * offset_y) > RUBBERBAND_START_DISTANCE * RUBBERBAND_START_DISTANCE)
{
priv->rubberband_select = TRUE;
- priv->rubberband_first = gtk_flow_box_find_child_at_pos (box, start_x, start_y);
+ priv->rubberband_first = gtk_flow_box_get_child_at_pos (box, start_x, start_y);
widget_node = gtk_widget_get_css_node (GTK_WIDGET (box));
priv->rubberband_node = gtk_css_node_new ();
if (priv->rubberband_select)
{
- child = gtk_flow_box_find_child_at_pos (box, start_x + offset_x,
+ child = gtk_flow_box_get_child_at_pos (box, start_x + offset_x,
start_y + offset_y);
if (priv->rubberband_first == NULL)
event_window = gdk_window_get_parent (event_window);
}
- child = gtk_flow_box_find_child_at_pos (box, relative_x, relative_y);
+ child = gtk_flow_box_get_child_at_pos (box, relative_x, relative_y);
gtk_flow_box_update_active (box, child);
return GTK_WIDGET_CLASS (gtk_flow_box_parent_class)->motion_notify_event (widget, event);
GtkFlowBoxPrivate *priv = BOX_PRIV (box);
GtkFlowBoxChild *child;
- child = gtk_flow_box_find_child_at_pos (box, x, y);
+ child = gtk_flow_box_get_child_at_pos (box, x, y);
if (child == NULL)
return;